﻿
namespace BEGDC.PreContract.DAL
{
    using System;
    using System.Collections.Generic;
    using Castle.ActiveRecord;
    using NHibernate.Expression;


    [ActiveRecord]
    public partial class KeyProjectDefaultAmount : ActiveRecordBase<KeyProjectDefaultAmount>
    {
		#region Const Definition
		
		public const string CONST_KeyProjectDefaultAmountID				= "KeyProjectDefaultAmountID";
		public const string CONST_DefaultAmount							= "DefaultAmount";
		public const string CONST_UpdateDate							= "UpdateDate";

		#endregion
		
        #region Member Variables
        // Primary Key
        private System.Int32 _keyProjectDefaultAmountID;
        
        // Non Key
        private Nullables.NullableDecimal _defaultAmount;
        private Nullables.NullableDateTime _updateDate;

        // Parents
        
        
		

        #endregion

        public KeyProjectDefaultAmount() {
               
        }
        public KeyProjectDefaultAmount(
            Nullables.NullableDecimal defaultAmount
            ,Nullables.NullableDateTime updateDate) : this() {
                
            this._defaultAmount = defaultAmount; 
            this._updateDate = updateDate; 
        }
        
        #region Properties
        // Primary Key        
		
		#if (SQLServer)
        [PrimaryKey]
		#else
		[PrimaryKey(PrimaryKeyType.Native, SequenceName = "SEQ_KEYPROJECTDEFAULTAMOUNT_KEYPROJECTDEFAULTAMOUNTID")]
		#endif
        public System.Int32 KeyProjectDefaultAmountID {
            get { return this._keyProjectDefaultAmountID; }
            set {  this._keyProjectDefaultAmountID = value; }
        }
        
        // Non Key
        [Property]
        public Nullables.NullableDecimal DefaultAmount {
            get { return this._defaultAmount; }
			set { this._defaultAmount = value; }
        }
        
        [Property]
        public Nullables.NullableDateTime UpdateDate {
            get { return this._updateDate; }
			set { this._updateDate = value; }
        }
        
        
        // Parent Relationships
        // Child Relationships
        
		
        #endregion
		
		// Clone
		public KeyProjectDefaultAmount Clone()
		{
			KeyProjectDefaultAmount newKeyProjectDefaultAmount = new KeyProjectDefaultAmount();
			
            newKeyProjectDefaultAmount.DefaultAmount = this._defaultAmount; 
            newKeyProjectDefaultAmount.UpdateDate = this._updateDate; 
			return newKeyProjectDefaultAmount;
		}
    }
}



